package expriment3_bag;

public class Five {
    public static void main(java.lang.String[] args) {
        String [][]arr = {
                {"====","国家层面","===="},
                {"富强","民主","文明","和谐"},
                {"====","社会层面","===="},
                {"自由","平等","公正","法治"},
                {"====","公民层面","===="},
                {"爱国","敬业","诚信","友善"},
                {"================"}
        };
        for (String[] row : arr) {
            for (String element : row) {
                System.out.print(element + " ");
            }
            System.out.println();
        }
        System.out.println("----------以上是本人书写的代码------------");
        System.out.println("----------以下是实验书上的代码------------");
        String [][] corevalue=new String[][]{{"富强","民主","文明","和谐"},{"自由","平等","公正","法治"},{"爱国","敬业","诚信","友善"}};

        for(int i=0;i<corevalue.length;i++){
            switch (i) {
                case 0:
                    System.out.println("====国家层面====");
                    break;
                case 1:
                    System.out.println("====社会层面====");
                    break;
                case 2:
                    System.out.println("====公民层面====");
                    break;

                default:
                    break;
            }
            for(int j=0;j<corevalue[i].length;j++){
                System.out.printf("%s  ",corevalue[i][j]);
            }
            System.out.println();

        }
        System.out.println("=============");
    }
}
